﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Linq;
using Soccer.Utility;
using EasyCode.Core.Bases;

namespace VTC.Web.UI
{
    public class SystemConfig
    {
        private SystemConfig() { }

        #region Helpers
        private static string GetDataConfigByKey(string key)
        {
            DataConfig configEnttity = new DataConfig();
            configEnttity.KeyParam = key;
            DataConfig configReturn = DataConfigController.FindItem(configEnttity);
            return Protector.String(configReturn.ValueParam, string.Empty);
            
        }

        #endregion

        #region Properties
       
        /// <summary>
        /// Lay duong dan cua thu mục chua image gallery
        /// </summary>
        public static string GetNewsAvatarPath
        {
            get
            {
                return DataTypeProtect.ProtectString(GetDataConfigByKey("IMAGE_GALLERY_PATH"));
            }
        }
        #endregion
    }
}